//
//  LDSCollectionViewModel.h
//  LDSMVVMBase
//
//  Created by kai_leedarson on 2017/10/9.
//  Copyright © 2017年 maple_leedarson. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "LDSCollectionViewCellViewModel.h"
#import "LDSCollectionReusableViewModel.h"

@protocol LDSCollectionViewModelDelegate <NSObject>
@optional
- (void)lds_collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath;
- (UIEdgeInsets)lds_collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section;
@end

@interface LDSCollectionViewModel : NSObject
@property(nonatomic, weak)  id<LDSCollectionViewModelDelegate> delegate;

- (void)handleWithCollection:(UICollectionView *)collectionView;
- (void)handleWithCollectionLayout:(UICollectionViewFlowLayout *)collectionLayout;
- (void)handleWithDataSource:(NSMutableArray *)dataSource;
- (void)handleWithSectionDataSoure:(NSMutableArray *)sectionDataSource;
@end
